package com.zxl.designpattern.creator.builder;

/**
 * @author zxl
 * @version 1.0
 * @description 轿车建造者
 * @date 2025/6/1 10:01
 */
public class SedanCarBuilder implements IBuilder{

    private Product product = new Product();

    @Override
    public void buildEngine() {
        product.setEngine("V6 发动机");
    }

    @Override
    public void buildWheels() {
        product.setWheels("4 个轮子");
    }

    @Override
    public void buildBody() {
        product.setBody("轿车车身");
    }

    @Override
    public Product getResult() {
        return product;
    }
}
